<template>
    <div class="classes-container">

        <el-button type="primary" @click="handleRefresh">刷新</el-button>
        <el-table :data="tableData" border style="width: 100%">
            <el-table-column prop="name" label="名称" width="180"/>
            <el-table-column prop="roomNum" label="教室" width="180"/>
            <el-table-column prop="" label="操作"/>
        </el-table>
    </div>

</template>

<script setup>
	import {queryByParam} from '@/api/classes/classes';

	const handleRefresh = () => {
		let param = {
			id: "1561196977457164290",
			name: 's',
            num: 23
		};

		queryByParam(param).then(res => {
			console.log(res);
		})
	}
</script>

<style>
    .classes-container {
        margin: 10px 10px 10px 10px;
        width: 900px;
    }
</style>
